#! /bin/bash
gnuplot << EOF
set ylabel "Number"
set style data histogram
set yrange [0:30000000] 
set style histogram cluster gap 1
set terminal postscript enhanced 25
set key left Left reverse
set key samplen 2
set output "$1.ps"
plot "$1" using 2:xtic(1) title "read request"  lc rgb "red" fs pattern 1,\
	"$1" using 3:xtic(1) title "read transaction"  lc rgb "blue" fs pattern 2 ,\
	"$1" using 4:xtic(1) title "write request"  lc rgb "purple" fs pattern 3,\
	"$1" using 5:xtic(1) title "write transaction"  lc rgb "black" fs pattern 4
EOF
